package com.wframe.project.jnd.vo;

import com.wframe.project.jnd.entity.MoneyOffItem;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by lwb on 2017/6/6.
 */
public class CartBean {
    private String promotionId;
    private BigDecimal totalPrice;
    //满减促销减去优惠金额前的总价格
    private BigDecimal minuendPrice;
    private BigDecimal discountMoney;
    private BigDecimal discountRate;
    private BigDecimal restMoney;
    //满赠金额
    private BigDecimal standardMoney;
    //满赠数量
    private Integer standardAmount;
    //是否含有满赠
    private boolean hasStandard = false;
    //赠品数量
    private Integer number;
    //是否满足满减满赠条件
    private boolean available = false;
    private List<CartProductVO> products;
    //满减全部规则
    private List<MoneyOffItem> items;
    private boolean inventoryChange;

    public List<MoneyOffItem> getItems() {
        return items;
    }

    public void setItems(List<MoneyOffItem> items) {
        this.items = items;
    }

    public String getPromotionId() {
        return promotionId;
    }

    public void setPromotionId(String promotionId) {
        this.promotionId = promotionId;
    }

    public BigDecimal getMinuendPrice() {
        return minuendPrice;
    }

    public void setMinuendPrice(BigDecimal minuendPrice) {
        this.minuendPrice = minuendPrice;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getDiscountMoney() {
        return discountMoney;
    }

    public void setDiscountMoney(BigDecimal discountMoney) {
        this.discountMoney = discountMoney;
    }

    public BigDecimal getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(BigDecimal discountRate) {
        this.discountRate = discountRate;
    }

    public BigDecimal getRestMoney() {
        return restMoney;
    }

    public void setRestMoney(BigDecimal restMoney) {
        this.restMoney = restMoney;
    }

    public BigDecimal getStandardMoney() {
        return standardMoney;
    }

    public void setStandardMoney(BigDecimal standardMoney) {
        this.standardMoney = standardMoney;
    }

    public Integer getStandardAmount() {
        return standardAmount;
    }

    public void setStandardAmount(Integer standardAmount) {
        this.standardAmount = standardAmount;
    }

    public boolean isHasStandard() {
        return hasStandard;
    }

    public void setHasStandard(boolean hasStandard) {
        this.hasStandard = hasStandard;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public boolean isAvailable() {
        return available;
    }

    public void setAvailable(boolean available) {
        this.available = available;
    }

    public List<CartProductVO> getProducts() {
        return products;
    }

    public void setProducts(List<CartProductVO> products) {
        this.products = products;
    }

    public boolean isInventoryChange() {
        return inventoryChange;
    }

    public void setInventoryChange(boolean inventoryChange) {
        this.inventoryChange = inventoryChange;
    }
}
